package com.el.factory.main;

import com.el.factory.dao.Sender;
import com.el.factory.daoImpl.MailSender;
import com.el.factory.daoImpl.SmsSender;

public class SendFactory {

    /* public Sender send(String type) {
         if ("mail".equals(type)) {
             return new MailSender();
         } else if ("sms".equals(type)) {
             return new SmsSender();
         } else {
             return null;
         }
     }*/
    //将方法改为静态方法
    public static Sender mailsend() {
        return new MailSender();
    }

    public static Sender smsSend() {
        return new SmsSender();
    }

}
